package com.zhengshang.api.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.zhengshang.common.annotation.Excel;
import com.zhengshang.common.core.domain.BaseEntity;

/**
 * 浏览记录对象 app_browse_record
 *
 * @author ruoyi
 * @date 2021-03-29
 */
public class AppBrowseRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 记录ID */
    private Long recordId;

    /** 记录类型（1浏览记录，2收藏） */
    @Excel(name = "记录类型", readConverterExp = "1浏览记录，2收藏")
    private String recordType;

    /** 记录来源（1淘宝天猫，2京东） */
    @Excel(name = "记录来源", readConverterExp = "1淘宝天猫，2京东")
    private String recordSource;

    /** 浏览人ID */
    @Excel(name = "浏览人ID")
    private Long userId;

    /** 信息ID */
    @Excel(name = "信息ID")
    private String infoId;

    /** 商品信息 */
    @Excel(name = "商品信息")
    private String goodsInfo;

    public void setRecordId(Long recordId)
    {
        this.recordId = recordId;
    }

    public Long getRecordId()
    {
        return recordId;
    }

    public String getRecordType() {
        return recordType;
    }

    public void setRecordType(String recordType) {
        this.recordType = recordType;
    }

    public void setRecordSource(String recordSource)
    {
        this.recordSource = recordSource;
    }

    public String getRecordSource()
    {
        return recordSource;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setInfoId(String infoId)
    {
        this.infoId = infoId;
    }

    public String getInfoId()
    {
        return infoId;
    }
    public void setGoodsInfo(String goodsInfo)
    {
        this.goodsInfo = goodsInfo;
    }

    public String getGoodsInfo()
    {
        return goodsInfo;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("recordId", getRecordId())
                .append("recordType", getRecordType())
                .append("recordSource", getRecordSource())
                .append("userId", getUserId())
                .append("infoId", getInfoId())
                .append("goodsInfo", getGoodsInfo())
                .append("createTime", getCreateTime())
                .toString();
    }
}